package biz.impl;

import java.util.List;

import biz.FoodBiz;
import dao.FoodDao;
import dao.impl.FoodDaoImpl;
import entity.Food;

public class FoodBizImpl implements FoodBiz{
	FoodDao fd =new FoodDaoImpl();
	@Override
	public void addFood(Food food) {
		fd.addFood(food);
		
	}

	@Override
	public void updateFood(Food food) {
		fd.updateFood(food);
	}

	
	@Override
	public void deleteFood(int foodId) {
		fd.deleteFood(foodId);
	}

	@Override
	public List<Food> queryAllFood() {
		return fd.queryAllFood();
	}

	@Override
	public List<Food> queryFood(List<Food> foodList,int pageNum,int pageSize)  {
		return fd.queryFood(foodList,pageNum, pageSize);
	}

	@Override
	public List<Food> queryHotFood() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Food queryFoodByFoodId(int foodId) {
		return fd.queryFoodByFoodId(foodId);
	}

	@Override
	public Integer queryFoodTotalCount(int foodTypeId) {
		return fd.queryFoodTotalCount(foodTypeId);
	}

	@Override
	public Integer queryAllFoodTotalCount() {
		return fd.queryAllFoodTotalCount();
	}

}
